package FlowGram.Application.Parser.Actions;

import FlowGram.Application.Parser.FinchParserException;
import FlowGram.Application.Parser.Controllers.FinchController;


/**
 * 
 * @author thackray
 *
 */
public abstract class FinchAction {

	public static boolean matches(String s){
		return false;
	}
	public static String syntax(){
		return "";
	}
	public String toCode(){
		return this.toCode(0);
	}
	public abstract String toCode(int indent);
	
	public abstract String toHTML(String idPrefix);
	
	public abstract void execute(FinchController controller);
	
	public abstract String logMessage();
	
	public abstract void parse(String statement) throws FinchParserException;
	
	
	public String getIndent(int num){
		String buffer = "";
		for(int i=0; i < num; i++){
			buffer += "\t";
		}
		return buffer;
	}
}
